<!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8">
    <title>{$setting.webname}-个人信息</title>
    <meta content="width=device-width,initial-scale=1.0,maximum-scale=1.0,user-scalable=0" name="viewport"/>
    <meta content="yes" name="apple-mobile-web-app-capable"/>
    <meta content="black" name="apple-mobile-web-app-status-bar-style"/>
    <meta content="telephone=no" name="format-detection"/>
    <link rel="shortcut icon" href="/public/static/admin/uploads/set/{$setting['ico']}">
    <link type="text/css" rel="stylesheet" href="/public/static/home/themes/css/base.css">
    <link type="text/css" rel="stylesheet" href="/public/static/home/themes/css/home.css">
    <script type="text/javascript" src="/public/static/home/themes/js/jquery.min.js"></script>
    <script type="text/javascript" src="/public/static/home/themes/js/slider.js"></script>
    <script type="text/javascript" src="/public/static/home/themes/js/tab.js"></script>
</head>
<body>

<section class="aui-flexView">
    <header class="aui-navBar aui-navBar-fixed b-line">
        <a href="javascript:history.back(-1)" class="aui-navBar-item">
            <i class="icon icon-return"></i>
        </a>
        <div class="aui-center">
            <span class="aui-center-title">个人信息</span>
        </div>
        <a href="javascript:;" class="aui-navBar-item">
            <i class="icon icon-sys"></i>
        </a>
    </header>
    <section class="aui-scrollView">
        <div class="aui-mate-box">

            <a href="javascript:;" class="aui-flex b-line">
                <div class="aui-flex-box">
                    <h3>姓名：{if condition="empty($user.name)"}<span style='color:#999'>未录入</span>{else /}{$user.name}{/if}</h3>
                </div>
            </a>
            <a href="javascript:;" class="aui-flex b-line">
                <div class="aui-flex-box">
                    <h3>联系电话：{if condition="empty($user.tel)"}<span style='color:#999'>未录入</span>{else /}{$user.tel}{/if}</h3>
                </div>
            </a>
            <a href="javascript:;" class="aui-flex b-line">
                <div class="aui-flex-box" style="line-height: 50px;">
                    <h3>微信二维码{if condition="empty($user.wx_qrcode)"}<span style='color:#999'>未录入</span>{else /}<img src="/public/static/admin/uploads/teacher_qr/{$user.wx_qrcode}" height="50" style="float: right;margin-right:10px;" class="setting_wxqrcode"/>{/if}</h3>
                </div>
            </a>
            <a href="javascript:;" class="aui-flex b-line">
                <div class="aui-flex-box" style="line-height: 50px;">
                    <h3>学生扫码{if condition="empty($user.qr_src)"}<span style='color:#999'>未录入</span>{else /}<img src="/public/static/admin/uploads/teacher_qrcode/{$user.qr_src}" height="50" style="float: right;margin-right:10px;" class="setting_wxqrcode"/>{/if}</h3>
                </div>
            </a>
            <a href="javascript:;" class="aui-flex b-line">
                <div class="aui-flex-box">
                    <h3>账号创建于：{if condition="empty($user.create_times)"}<span style='color:#999'>未录入</span>{else /}{$user.create_times|date="Y年m月d日 H:i:s",###}{/if}</h3>
                </div>
            </a>
        </div>
    </section>
</section>
<script src="/public/static/admin/layui/layui.js"></script>

<script type="text/javascript">


    layui.use('upload', function() { //独立版的layer无需执行这一句
        var $ = layui.jquery, layer = layui.layer, upload = layui.upload; //独立版的layer无需执行这一句
        /*
        * 点击图片放大
        */
        $(".setting_wxqrcode").on("click",function(){
            var imgSrc=$(this).attr('src');
            layer.open({
                type:1
                ,title:false
                ,closeBtn:0
                ,shade:0.7
                ,skin:'layui-layer-nobg'
                ,shadeClose:true
                ,content:'<div style="padding-top:-64px;"><img style="width:100%;height:100%;padding-top:-64px;" class="layui-upload-img" src="'+ imgSrc +'"/></div>'
                ,scrollbar:false
            })
        })
    })
</script>
</body>
</html>